package com.motorwaymanage.beans;
/**
 * 维护申请
 */
public class ApplyInfo {
	private int aid;
	private int mid;
	private String laddr;
	private int astatus;//默认未维修  1为已维修
	private int aok;//默认为未通过   1位通过
	
	@Override
	public String toString() {
		return "ApplyInfo [aid=" + aid + ", mid=" + mid + ", laddr=" + laddr + ", astatus=" + astatus + ", aok=" + aok
				+ "]";
	}

	public int getAid() {
		return aid;
	}

	public void setAid(int aid) {
		this.aid = aid;
	}

	public int getMid() {
		return mid;
	}

	public void setMid(int mid) {
		this.mid = mid;
	}

	public String getLaddr() {
		return laddr;
	}

	public void setLaddr(String laddr) {
		this.laddr = laddr;
	}

	public int getAstatus() {
		return astatus;
	}

	public void setAstatus(int astatus) {
		this.astatus = astatus;
	}

	public int getAok() {
		return aok;
	}

	public void setAok(int aok) {
		this.aok = aok;
	}

	public ApplyInfo(int aid, int mid, String laddr, int astatus, int aok) {
		super();
		this.aid = aid;
		this.mid = mid;
		this.laddr = laddr;
		this.astatus = astatus;
		this.aok = aok;
	}

	public ApplyInfo() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + aid;
		result = prime * result + aok;
		result = prime * result + astatus;
		result = prime * result + ((laddr == null) ? 0 : laddr.hashCode());
		result = prime * result + mid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ApplyInfo other = (ApplyInfo) obj;
		if (aid != other.aid)
			return false;
		if (aok != other.aok)
			return false;
		if (astatus != other.astatus)
			return false;
		if (laddr == null) {
			if (other.laddr != null)
				return false;
		} else if (!laddr.equals(other.laddr))
			return false;
		if (mid != other.mid)
			return false;
		return true;
	}
}
